<?php
class Application_Form_RealEstate extends Application_Form_Object
{
	public function __construct($options = null)
	{
		parent::__construct($options);
		$this->setName('realestate');
		
		
		
		$surface = new Zend_Form_Element_Text('surface');
		$surface->setLabel('Surface:')
		->setAttrib('placeholder', 'in m²')
		->setRequired(true)
		->setFilters(array('StringTrim','StripTags'))
		->setValidators(array('NotEmpty'))
		->addValidator(new Zend_Validate_Digits());
		
		
		$elements = array( $surface);
		$this->addElements($elements);
	}
}